﻿<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>运营报告</title>
<base href="<%=request.getContextPath()%>/"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="bt/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="bt/css/bootstrap.min.css" />
<link href="style/adminStyle.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="css/jquery.pagination.css" />
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
<script src="js/jquery.pagination.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/public.js"></script>
</head>
<body>
 <div class="wrap">
  <div class="page-title">
    <span class="modular fl"><i></i><em>产品列表</em></span>
    <span class="modular fr"><a href="news/preAdd" class="pt-link-btn">+添加报表</a></span>
  </div>
  <div class="operate">
   <form action="reports/listOfBranch?typeId=${type.typeId}" method="post">
    <select class="inline-select" name="rep.type.typeId" >
    	<c:forEach items="${list1}" var="type">
    		<c:choose>
    			<c:when test="${type.typeId==1}">
    				<option selected="selected" value="${type.typeId}">${type.typeName}</option>
    			</c:when>
    			<c:otherwise>
    				<option value="${type.typeId}">${type.typeName}</option>
    			</c:otherwise>
	    	</c:choose>	
	    </c:forEach>
    </select>
    <input type="button" value="查询" class="tdBtn"/>
   </form>
  </div>
  <table class="list-style Interlaced">
   <tr>
   			<th class="center">新闻编号</th>
			<th class="center">新闻标题</th>
			<th class="center">发布时间</th>
			<th class="center">图片名称</th>
			<th class="center">新闻类型</th>
			<th class="center">操作</th>
   </tr>
   <c:forEach var="news" items="${list}">
   	 <tr>
	    <td>
	     <span>
	     <input type="checkbox" class="middle children-checkbox"/>
	     <i>${news.newsId}</i>
	     </span>
	    </td>
    	<td class="center">${news.newsTitle}</td>
	    <!--
	    <td class="td-name">
	      <span class="ellipsis td-name block">这是产品或服务名称(宽度350px)</span>
	    </td>-->
        <td class="center">  
	      <fmt:formatDate value="${news.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
	    </td>
	     <td class="center">
	  		${news.res.resName}
	    </td>
	    <td class="center">
	  		${news.type.typeName}
	    </td>
    <td class="center">
     <a href="news/details/${news.newsId}" title="查看" target="_blank"><img src="images/icon_view.gif"/></a>
     <a href="news/preUpdate/${news.newsId}" title="编辑"><img src="images/icon_edit.gif"/></a>
     <a href="news/delete/${news.newsId}" title="删除"><img src="images/icon_drop.gif"/></a>
    </td>
   </tr>
   </c:forEach>
  
  </table>
  <!-- BatchOperation -->
  <div style="overflow:hidden;">
      <!-- Operation -->
	  <div class="BatchOperation fl">
	   <input type="checkbox" id="del"/>
	   <label for="del" class="btnStyle middle">全选</label>
	   <input type="button" value="批量删除" class="btnStyle"/>
	  </div>
	  <!-- turn page -->
	  
	 
  </div>
 
</div>
</body>
</html>

